package inheritance;

public class TennisPlayer extends Player {

	
		
		int positionOfThePlayer;
		int trophysWon;
		public TennisPlayer(String name, int id, int numberOfMatchesPlayed, int positionOfThePlayer, int trophysWon ){
		  super(name, id, numberOfMatchesPlayed);
		  
		  this.positionOfThePlayer = positionOfThePlayer;
		  this.trophysWon = trophysWon;
		}
		
		
		void gameStart(){
			System.out.println("The game is started and " + name +"   id no. " + id +" with poistion " + positionOfThePlayer + " total trophys won by him = " + trophysWon + " is leading....");
		}


		public void numberOfMatchesPlayed() {
			System.out.println("Number of Matches Played by him = " + numberOfMatchesPlayed);
		
		}
		

	
	
}
